<template>
	<!-- 课程模块 -->
	<view class="classbox">
		<view>
			<image style="height: 200rpx; width: 300rpx;" :src="video_img" mode="scaleToFill"></image>
		</view>
		<view style="margin-left: 20px;" class="classtwobox">
			<view class="titlehead">
				<h3>{{title}}</h3>
			</view>
			<view class="titlebotto">
				<view style="display: flex;">
					
					<view class="">
						时长{{duration}}
					</view>
				</view>
				<view>
					<button>观看</button>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name:"classs",
		props:{
			title:String,
			duration:String,
			video_img:String,
			
		},
		data() {
			return {
				
			};
		}
	}
</script>

<style>
	.titlebotto{
	/* 	height: 100%; */
	height: 80%;
		width: 100%;
		display: flex;
		margin-top: 10rpx;
		justify-content: space-between;
		/* align-items: flex-end; */
	}
	.classbox{
		width: 100%;
		/* height: 150px; */
		display: flex;
		justify-content: space-between;
	}
	.classbox view{
		float: left;
	}

</style>